package xmarti.vacaxm.beans.sequence;

import java.util.Objects;

public class State implements java.io.Serializable {		
	private Integer id;
	private String name;
	private String description; 
	private int duration;	
	public  State(){
		
	}        
	public  State(String name, int duration, String description){		
		this.name= name ;  		
		this.duration = duration;
		this.description= description; 
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return this.name ;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getDuration() {
			return this.duration ; 			
	}
	public void setDuration (int duration){
		this.duration=duration; 
	}

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + Objects.hashCode(this.name);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final State other = (State) obj;
        if (!Objects.equals(this.name, other.name)) {
            return false;
        }
        return true;
    }
	
        @Override
	public String toString() {
		return this.name; 
	}
}
